package createThread.cn.tedu.threaddemo.test1.Anonymous.test1;

public class Outer {
    int a = 10;
    static int b = 20;
    private int c = 30;
    private static int d = 40;

    public void NotIsStatic(){
         int a = 100;
        new Thread(()->{
            System.out.println(a);
            System.out.println(b);
            System.out.println(c);
            System.out.println(d);
        }).start();
    }
    public static void isStatic(){
        final int a = 100;
        final int b = 200;
        new Thread(()->{
            System.out.println(a);
            System.out.println(b);
//            System.out.println(c);
            System.out.println(d);
        }).start();
    }

    public static void main(String[] args) {
        new Outer().NotIsStatic();
//        new Outer().isStatic();
    }
}
